﻿@model MediaScraper.Dashboard.Models.AdapterConfigModel

@{
    ViewBag.Title = "Agents";
}



<div id="adapterSettings">
    @using (Ajax.BeginForm("UpdateAdapterConfig", "Configuration", new AjaxOptions { UpdateTargetId = "adapterSettings", HttpMethod = "POST" }))
    {
        @Html.ValidationSummary();
        <div class="form-group">
            @Html.LabelFor(m => m.SelectedAdapter, new { @class = "col-lg-2 control-label" })
            <div class="col-lg-10">
                @Html.DropDownListFor(m => m.SelectedAdapter.FullName, new SelectList(
              Model.Adapters,
              "value",
              "text",
              Model.SelectedAdapter.FullName), new { @class = "form-control input-sm" })
            </div>
        </div>
        <input type="submit" class="btn btn-primary" value="Save" />
    }
</div>

